<template>
	<view>
		这里是跳转页面
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad(options) {
			console.log(options)
			if(options.id=="index"){
				this.toIndex()
			}
			if(options.id=="person"){
				this.toperson()
			}if(options.id=="upInsect"){
				this.toupInsect()
			}if(options.id=="login"){
				this.toLogin()
			}if(options.id=="messageUp"){
				this.toMessageUp()
			}
		},
		methods: {
			toIndex(){
				uni.switchTab({
					url: '../index/index'
				});
			},
			toperson(){
				uni.switchTab({
					url: '../person/person'
				});
			},
			toupInsect(){
				uni.switchTab({
					url: '../upInsect/upInsect'
				});
			},
			toLogin(){
				uni.switchTab({
					url: '../ModelPage/login'
				});
			},
			toMessageUp(){
				uni.redirectTo({
					url: '../messageUp/messageUp'
				});
			}
		}
	}
</script>

<style>

</style>
